<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateShippingOrderEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_address}" for="address" />
                    <h:selectOneMenu id="address" value="#{shippingOrderEntityController.selected.address}" title="#{bundle.CreateShippingOrderEntityTitle_address}" >
                        <f:selectItems value="#{addressEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_dateToShip}" for="dateToShip" />
                    <h:inputText id="dateToShip" value="#{shippingOrderEntityController.selected.dateToShip}" title="#{bundle.CreateShippingOrderEntityTitle_dateToShip}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_salesOrder}" for="salesOrder" />
                    <h:selectOneMenu id="salesOrder" value="#{shippingOrderEntityController.selected.salesOrder}" title="#{bundle.CreateShippingOrderEntityTitle_salesOrder}" >
                        <f:selectItems value="#{salesOrderEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_status}" for="status" />
                    <h:inputText id="status" value="#{shippingOrderEntityController.selected.status}" title="#{bundle.CreateShippingOrderEntityTitle_status}" />
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_billingRequest}" for="billingRequest" />
                    <h:selectOneMenu id="billingRequest" value="#{shippingOrderEntityController.selected.billingRequest}" title="#{bundle.CreateShippingOrderEntityTitle_billingRequest}" >
                        <f:selectItems value="#{billingRequestEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_packingOrder}" for="packingOrder" />
                    <h:selectOneMenu id="packingOrder" value="#{shippingOrderEntityController.selected.packingOrder}" title="#{bundle.CreateShippingOrderEntityTitle_packingOrder}" >
                        <f:selectItems value="#{packingOrderEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{shippingOrderEntityController.selected.id}" title="#{bundle.CreateShippingOrderEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{shippingOrderEntityController.selected.createdAt}" title="#{bundle.CreateShippingOrderEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{shippingOrderEntityController.selected.createdBy}" title="#{bundle.CreateShippingOrderEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{shippingOrderEntityController.selected.lastModifiedAt}" title="#{bundle.CreateShippingOrderEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateShippingOrderEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{shippingOrderEntityController.selected.lastModifiedBy}" title="#{bundle.CreateShippingOrderEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{shippingOrderEntityController.create}" value="#{bundle.CreateShippingOrderEntitySaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{shippingOrderEntityController.prepareList}" value="#{bundle.CreateShippingOrderEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateShippingOrderEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
